<template>
  <div class="index">
    <div class="top">
      <ul>
        <li
          v-for="(item, i) in tabList"
          :key="i"
          :class="tabIndex == i ? 'active' : ''"
          @click="handleTabChange(i)"
        >
          {{ item.name }}[60]
        </li>
      </ul>
    </div>
    <el-image class="img_box" :src="urls" preview-src-list>
    </el-image>
    <div class="startBtn" @click="$router.push('/personal_center/startFileSel')">开始选片</div>
    <div style="height: 40px"></div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      urls: 'https://fuss10.elemecdn.com/3/28/bbf893f792f03a54408b3b7a7ebf0jpeg.jpeg',
      tabList: [
        { id: 1, name: "全部" },
        { id: 2, name: "已选" },
        { id: 3, name: "未选" },
      ],
      tabIndex: 0,
    };
  },
  methods: {
    handleTabChange(i) {
      this.tabIndex = i;
    },
  },
};
</script>

<style scoped lang="less">
.index {
  width: var(--contentWidth);
  margin: 0 auto;
  height: auto;
}
.top {
  height: 40px;
  line-height: 40px;
  ul {
    display: flex;
    margin-bottom: 4px;
  }
  li {
    margin: 0 12px;
  }
  .active {
    border-bottom: 2px solid #30c2a3;
    color: #30c2a3;
  }
}
.img_box {
  margin-top: 10px;
  width: 100%;
  height: 600px;
  // filter:blur(10px); //图片模糊
}
.startBtn {
  text-align: center;
  width: 150px;
  height: 40px;
  line-height: 40px;
  border: 1px solid #30c2a3;
  font-size: 12px;
  color: #30c2a3;
  margin: 0 auto;
  margin-top: 30px;
}
</style>